<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘云购-商品详情</title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/product.css">
</head>

<body>
    <div class="lt_container">
        <!-------------- header -------------->
        <div class="header">
            <a href="javascript:history.go(-1);" class="icon_left">
                <i class="mui-icon mui-icon-arrowleft"></i>
            </a>
            <div class="title">
                <h4>商品详情</h4>
            </div>
            <a href="javascript:location.reload();" class="icon_right">
                <i class="mui-icon mui-icon-reload"></i>
            </a>
        </div>
        <!-------------- main -------------->
        <div class="main">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <!-- 轮播图 -->

                </div>
            </div>
        </div>
        <!-------------- go_cart -------------->
        <div class="go_cart">
            <a href="cart.html" class="mui-pull-left">去购物车</a>
            <div class="handle mui-pull-right">
                <button class="mui-btn-danger btn-addCart">加入购物车</button>
                <button class="mui-btn-warning">立即购买</button>
            </div>
        </div>
    </div>

    <script type="text/html" id="tmp">
        <div class="mui-slider">
                <div class="mui-slider-group mui-slider-loop">
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{ pic[pic.length-1].picAddr }}" /></a></div>
                    {{ each pic v i }}
                    <div class="mui-slider-item"><a href="#"><img src="{{ v.picAddr }}" /></a></div>
                    {{ /each }}
                    <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{ pic[0].picAddr }}" /></a></div>
                </div>
                <div class="mui-slider-indicator">
                    {{ each pic v i }}
                    <div class="mui-indicator {{ i ===0 ? 'mui-active' : ''}}"></div>
                    {{ /each }}
                </div>
            </div>
            <!-- 标题 -->
            <h4 class="mui-ellipsis-2 title">{{ proName }}</h4>
            <div class="price">
                价格：<span class="nowPrice">&yen;{{ price }}</span> <span class="oldPrice">&yen;{{ oldPrice }}</span>
            </div>
            <div class="size">
                尺码：
                <% 
                    var size = size.split('-')
                    for (var i = +size[0]; i <= size[1]; i++ ) {
                %>
                <span><%= i %></span>
                <% } %>
            </div>
            <div class="num">
                数量：
                <div class="mui-numbox"  data-numbox-min="1" data-numbox-max="{{num}}">
                    <button class="mui-btn mui-numbox-btn-minus" type="button">-</button>
                    <input class="mui-numbox-input" type="number" />
                    <button class="mui-btn mui-numbox-btn-plus" type="button">+</button>
                </div>
                <span>剩余数量：</span>
                <span>{{num}}双</span>
            </div>
            <div class="detail">
                详情：{{proDesc}}
            </div>
    </script>



    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/product.js"></script>
</body>

</html>